package main

import "fmt"

func main() {
	//函数的数据类型
	fmt.Printf("%T\n", ff1) //无参数无返回值的函数类型func()
	fmt.Printf("%T\n", ff2) //两个参数的无返回值的函数类型func(int, int)
	fmt.Printf("%T\n", ff3) //两个参数，两个返回值的函数类型func(int, int) (int, int, int)
	fmt.Printf("%T\n", ff4) //可变参数func(int, int, ...int) (int, int, int)

}
func ff4(a1, a2 int, a3 ...int) (int, int, int) {

	return 1, 1, 1
}
func ff3(a1, a2 int) (int, int, int) {

	return 1, 1, 1
}

func ff2(a1, a2 int) {

}
func ff1() {

}
